package example08;

public class FruitTest {
    public static void main(String[] args) {
        Apple apple = new Apple();
        apple.setArea("大理");
        apple.setName("苹果");
        apple.setPrice('5');
        System.out.println(apple);

        Strawberry strawberry = new Strawberry();
        strawberry.setArea("大理");
        strawberry.setName("草莓");
        strawberry.setPrice('5');
        System.out.println(strawberry);

        Watermelon watermelon = new Watermelon();
        watermelon.setName("西瓜");
        watermelon.setArea("大理");
        watermelon.setPrice('5');
        System.out.println(watermelon);


    }
}
